<ul class="index_subject_pic">
<!--{loop $_QUERY[mydata] $key $val}-->
<li>
	{eval $thumb=$val[thumb]?$val[thumb]:'static/images/noimg.gif';}
    <div><a href="{url item/detail/id/$val[sid]}"><img src="{img $thumb}" alt="$val[name].$val[subname]" title="$val[name].$val[subname]" /></a></div>
    <p><a href="{url item/detail/id/$val[sid]}" title="$val[name].$val[subname]">{sublen $val[name].$val[subname],10}</a></p>
</li>
<!--{/loop}-->
</ul>